<?php
function change_path($path,$id){
require_once('db.class.php');
if ($path=="") $path="basic";
$db=new DB();
$db->query("UPDATE user SET photopath=\"img/".$path."\" where id_user=".$id.";");
}
?>
